home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5976 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news1.interserv.net!news
  2. From: rvanrooy@spry.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Gnu-win32: Errors during compile
  5. Date: 7 Feb 1996 18:15:23 GMT
  6. Organization: InterServ News Service
  7. Message-ID: <4faq7r$6sb@lal.interserv.net>
  8. NNTP-Posting-Host: 198.185.2.180
  9. X-Newsreader: SPRY News 3.10 (SPRY, Inc.)
  10.  
  11.  
  12. I am trying to compile the c++ demo program that comes with the gnu-win32 c++ 
  13. package and I get errors.
  14.  
  15.  
  16. C:\Usr\demo>gcc cplus.cc
  17. /Usr/TEMP/cc0010001.o(.text+0x43):cplus.cc: undefined reference to `cout'
  18. /Usr/TEMP/cc0010001.o(.text+0x48):cplus.cc: undefined reference to `ostream::ope
  19. rator<<(char const *)'
  20. /Usr/TEMP/cc0010001.o(.text+0x53):cplus.cc: undefined reference to `ostream::ope
  21. rator<<(int)'
  22. /Usr/TEMP/cc0010001.o(.text+0x5e):cplus.cc: undefined reference to `ostream::ope
  23. rator<<(char const *)'
  24.  
  25. My environment is as follows:
  26.  
  27.  
  28. C:\Usr\demo>set
  29. PROMPT=$p$g
  30. winbootdir=C:\WIN311
  31. COMSPEC=C:\WIN311\COMMAND.COM
  32. TEMP=C:\Usr\TEMP
  33. TMP=C:\Usr\TEMP
  34. BIN=C:\Usr\BIN
  35. INCLUDE=C:\Usr\INCLUDE
  36. LIB=C:\Usr\LIB
  37. CPLUS_INCLUDE_PATH=C:\Usr\lib\g++-include
  38. windir=C:\WIN311
  39. BLASTER=A220 I5 D1 H5 P330 T6
  40. PATH=Y:\PUBLIC;X:\;Z:\;C:\SPRY\BIN;C:\USR;C:\USR\BIN;C:\USR\LIB;C:\USR\INCLUDE;C
  41. :\WIN311;C:\WIN311\COMMAND;C:\NWCLIENT
  42. CMDLINE=gcc cplus.cc
  43.  
  44.  
  45. Does anyone know what I am doing wrong ?
  46.  
  47. thanks,
  48.  
  49. Russ
  50.  
  51.